package com.foreknow.demo9;

import java.awt.*;

public class MyWindow extends Frame {
    public MyWindow(String title) {
        setSize(800,800); //设置窗口的大小
        setTitle(title);
        setVisible(true);//设置窗口的可见
    }
    public static void main(String[] args) {
        MyWindow myWindow = new MyWindow("这是一个顶层窗口");

    }
}
